package ch6oopexerteachertest;

import ch6oopexerjavateacher.javaTeacher;
import ch6oopexernetteacher.netTeacher;
import ch6oopexerteacher.Teacher;
import ch6oopexeruiteacher.uiTeacher;

public class TeacherTest {
    public static void main(String[] args) {//姓名，年龄，教龄和性别属性
        Teacher t1 = new javaTeacher("老王",21,3,"男","java");
        t1.selfIntroduce();
        t1.giveLession();

        System.out.println("*************************");
        Teacher t2 = new uiTeacher("老刘",25,4,"男","ui");
        t2.selfIntroduce();
        t2.giveLession();

        System.out.println("*************************");
        Teacher t3 = new netTeacher("小丽",35,7,"女","net");
        t3.selfIntroduce();
        t3.giveLession();

    }
}
